package me.youline.dataServer.controller.dto;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Max;

import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户个人信息前端展示消息传输对象
 * @author linhan
 *
 */
public class UserInfoFrontDTO implements Serializable {

	private static final long serialVersionUID = -3105394278275662560L;
	@Length(max=20)
	private String nickName;
	
	private String userName;
	
	@Max(1)
	private Integer gender;
	
	private int followerNum;
	
	private int followingNum;
	
	private boolean isOfficial;
	
	private UserRelationStatusDTO relStatus;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
	
	private String avatarUrl;
	
	private String phoneNum;
	
	private Long userId;
	
	
	
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getGender() {
		return gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public int getFollowerNum() {
		return followerNum;
	}

	public void setFollowerNum(int followerNum) {
		this.followerNum = followerNum;
	}

	public int getFollowingNum() {
		return followingNum;
	}

	public void setFollowingNum(int followingNum) {
		this.followingNum = followingNum;
	}

	public UserRelationStatusDTO getRelStatus() {
		return relStatus;
	}

	public void setRelStatus(UserRelationStatusDTO relStatus) {
		this.relStatus = relStatus;
	}

	public boolean getIsOfficial() {
		return isOfficial;
	}

	public void setIsOfficial(boolean isOfficial) {
		this.isOfficial = isOfficial;
	}
	
}
